package com.example.swagger.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.tags.Tags;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/7/10 下午 01:58
 * @version: v1.0
 */

@RestController
public class SwaggerController {

    @Schema(oneOf = Double.class, name = "PI", title = "title")
    private static final Double PI = 3.145926;

    @Tag(name = "tag1", description = "swagger测试")
    @Operation(method = "方法", summary = "summary概括", description = "描述")
    @GetMapping("/hello")
    public String testSwagger(String name, Integer id){
        return "Swagger测试用例";
    }

}
